﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using FluentNHibernate.Mapping;
using Model.Entities;

namespace Model.Mappings
{
    public partial class RMBT_CODE_EQUWORKMODE_Map : ClassMap<RMBT_CODE_EQUWORKMODE>
    {
        public RMBT_CODE_EQUWORKMODE_Map()
        {
            Table("RMBT_CODE_EQUWORKMODE");
            Id(x => x.CODE_ID)
                .Length(2);

            Map(x => x.CODE_NAME).Nullable().Length(50);
            Map(x => x.CODE_SHORTNAME).Not.Nullable().Length(25);
            Map(x => x.CODE_USEDFLAG).Nullable().Precision(1).Scale(0);
            DoEditableMappings();
        }
    }
}
